added a fix when map is moved to the edges of the window, still needs some improvements
updated javadoc
Merge pull request #39 from Mario-S/2.2

2.2