Minor modification and removal of try catch block
Added some more test programs