Fixing bug in Processor.cpp, cleaning examples