adds TradeModelParser; completes implementation of TemplateGenerator; some minor refactoring
fixes some declaration issues; removes unused throws
(minor) adds some javadoc
(minor) fixes typo