Added comments

Mostly create docstrings.
Minor spelling fix