bugfix in pattern matcher, started C language and formatter