Base template cleanup.
Better error handling.
Added some more helpers.
Minor updates to readme.