Removed test code
Improved some comments
Added positioning tests
Improved tests
fixed javadoc warnings