fix amd module generator on old api - fixes #166
better errors for JSON grammars and comment support on the cli
document start conditions in JSON grammars, update docs