Added some comments and updated the readme.