[minor] CS Fixes
[minor] CS Fixes
Moved substitution tag parsing out of CodeLine into CodeTemplateParser
Eliminated StructureException in preference to SPL LogicException
[minor] CS Fixes
Created LogicException subclasses for each of the specific cases a LogicException is thrown