Create BaseGenerator compileTemplate method

- closes #11
minor formatting update