Added comments above all code. Edited README.md