added comments and updated readme