ENH: Refactored into Tempita template. Improved build process.