Added .gitignore.
Added some comments throughout the code.
Merge remote-tracking branch 'origin/master'