Misc improvements

findBody returns proper object, transform returns proper object, now map
block to segments, fixed a huge bug with link density, completely
refactored text density,