minor error checking in module action handling
better handling of labels from module blocks.
minor bug fixes.