added tests
refactored code
bearing estimation java source is now contained in this repository