Ziqi simplified baseline.cpp, convert.cpp, normalize.cpp