added javadoc, online tests