Fixed some syntax errors in models. Have to prepend the field types with models. Also have to put 'self' as th ekey when doing self-referential fields.