updated MessageCompiler.js for batch inserts into mongodb
Finish modifying and commenting GroupSwitcher.js and MessageCompiler.js