16x2 LCD shows only black boxes in the bottom line

It seems there are few problems in the earlier version of the arduino lcd library.
I saw the changes made and wired my lcd as per the latest (updated) lcd library and it works fine..

You need to get the black square boxes in the lcd before connecting the pins RS,EN,RW and the four data pins to the arduino.Once you got that,
All you need to do is to initailise your LCD pins by cheking the line : LIquidCrystal lcd (......) in your code..
Make sure that RS goes to pin 7 of arduino,EN goes to pin 8, and the four data pins (14,13,12,11) of the LCD goes to pins 12,11,10,9 of your arduino.
So it should be: LiquidCrystal lcd (7.8.9.10.11.12);
Now it should work fine!