PEP8'd base settings + Sphinx'd docstrings

I condensed docstrings a little and used full variable types names (str. -> string) so that Sphinx generates links in documentation.