don't cd here at the start
fix lack of import
use correct template app name
minor stylistic change
include templates
style change
licence under gpl3
need to include this