Fix whitespace
added docstrings, removed caps from search, added a comment or two