Added comments and docstrings
Fixed a spacing error
Fixed spelling error
added basic logging, and can be run as a script now
Re-configured header dictionary, and set up logging stuff
Minor cleanup