Added new factory: regular trees
Switched to using library methods for multicode factories

This fixes #1 for these factories
Made rule to compile files more generic