Add possibility to build dmg

Fixes to Javadoc and added special target to build dmg