add javadoc
cleanup
increase default chunk
fix bug #923