Added the changes from Rahim. Changed the table placement rules from [ht] to [!htb]