update parser and test, adding cmakeLists to compile