getstart.cpp

some useful pre-treatments