fix unmarshal of job template
add models/doc.go