Added JavaDoc for created methods

Need to check:
wrap around
unit tests
accuracy (does not always return correct value because of noise)