added javadoc + sources. bugfixes