Allow for empty title and text body, fix pep8 errors