create some more skeleton stuff

- create 'mode', 'normal', 'buffer' and 'cursor' modules
- fix issues with pattern matching syntax