Added better testing with gocheck
Fixed some typos leading to syntax errors
TODO: Finish up gorm integration into templates