add so many things, new version of state machine using boost.iostreams and lots of charateristic of c++. Not yet been tested.