adjusted whitespace in code templates
fixed issue with result counters