rename a couple of functions for more consistency across modules.
direction parser gets new initialization function, for use in jsonconf later. add unit tests for directions.