pep8 updates and added methods to the models.