added type to motivation text, fixed pep8