Add docstrings and minor syntax changes
Add gitignore