Some updates

- updated getViewport function
- update getMaxZindex function
- now the overlay is destroyed when closing the window
Bumped version number to 0.2.2
Merge branch 'release-0.2.2' into develop