Update readme with actual information. Add some comments to code for clarification.