replaced {} .format() with %s
removed methods that are not used; added docstrings; pep8 fixes