leitmotif CLI now has an exit status
added required-var checking in prototype metadata
added debug output option to CLI