Corrected the bug that made the mainModule not editable. Close #27.