Controller generator

Basic controller generator, still work in progress.