More command line options. Ditched foreign keys as they do not work. Now generates a template that compiles.