added template option accepting a function instead of string. added sublime text project file to gitignore, updated doc, updated readme