Added setDirection functionality
Merge pull request #19 from Manawyrm/master

Added setDirection functionality