Removed redundant code and updated readme file