General refactoring

Cleaned up comments, merged scoreBlocks into generateBlocks, added
attribution clause, changed appendBlock to createBlock, clarified diff
between appending images and text blocks, separated out biases, test
value emptiness in iterator generator instead of per iteration, added
tag name and id/class biases, fixed bug with merging text blocks into
image blocks, refactored block aggregation and main group extension
technique