Comments

Added some quick comments to the functions.
Added a .gitignore