Updated DESIGN, note nested-modes-detection algorithm
Small fixes in mode, new features in parser
Implemented basic child-mode checking
Added more unit tests