added some comments and updated readme