Program options added to main. WorkMode can be choosen by command line argument.