add documentation comments
use maxblocksize instead of numeric constant
use getHeader() instead of accessing now private field
refactoring
add/fix documentation