Fix function names to be pep8 compliant
Changed Directions from class to namedtuple