Fix typos and stupid bugs
Add docstrings