updated readme and added some comments