Added debug flag, and implemented a first trial at removing all comments from output.