adding flags to Peg
refactoring Parser