use the parseDirections function
Merge pull request #5 from lookfirst/master

use the parseDirections function