add more grammar. and add stubs for refactoring debug module.