added more comments and updated readme