add app.Directive; use *app; better header on gen'd files
add error check to test
better formatting of type string methods