Merge pull request #13 from dnajd/master

extracted our code into external files so we can work with both approaches for a while
converted tabs to spaces
minor formatting updates
added jointmanager tests to script