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

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