Clean up and document some usages of flags in the backend
Support writing classfile of version 52
Documentation for isModuleClass