Add initial API
Fix broken spec
Probably not going to write a test for this
Fix sed on mac
Fix model loading, make more sensible factory