The genrator is changed so that it can do other code transformation jobs apart from inserting debug code. Fixed a bug in Annotations which didn't properly shut down if there are no new annotations.