updated readme & added comments

updated read me file and added comments to code