More refactors
updated ramenlibs
removed std::auto_ptr, other changes