fixes #2822 - Return codes should be defined at one place
Merge pull request #29 from mbacovsky/2822_exit_codes

fixes #2822 - Return codes should be defined at one place