update main.cpp
parse command line parameters
Merge branch 'master' of https://github.com/ck-unifr/hisdoc-pageseg