Add the beginnings of an emitter
Fix transform code
Add table transforms and unit tests