Minor stuff and possibly improved chain heal calc.
Untested and un-compiled.

Signed-off-by: MaloW <MaloW@spray.se>