fixed documentation
added javadoc
added build script