Updating all blocks to allow for IDs on most of them based on block title; also some cleanup.
Slight refactor to functions.
Merge pull request #521 from weerd/adding-segment-ids

Updating all blocks to allow for outputting IDs