Wrote more complete README. Added some code comments.