updated readme and added comments