introduce exit codes.
clean up CommonJS.