MAKE: added global makefile
replaced printf with std::cout in output of state-machine. Reason: printf crashed the application.
moved to_string2() into a separate file
added Callback interface; started to implement control() function