add new output file format for segment positions
fix pos output format; scale position to 100dpi
fix some compilation warnings, add some file to CMakeList for qtcreator
simplify all.h in preparation for qt5