various fixes in parser, added documents