Improving main method.
Merge branch 'master' of github.com:imberda/rehpic