Start writing vocab; add basic check. Fix pep8. Add more logging.