removed redundant code,still comments are not added yet, lot of try
catch has to be added , error report are nor integrated with error
manager