added more comments and added to README file