Updated docstrings, fixed whitespace, fixed datetime exception