add MatlabEngineWrapper class for better encapusulation
some cosmetic changes; fail to run without cache, fix demanded
minor cleanup