Added a setPosition function.
Merge pull request #871 from eightyeight/set-position

Added a setPosition function