Fixed the issues raised in the pull request
Changed an exit(1) statement to return 1 and modified the code to take
all haarcascade files as input so that running the binary becomes
location invariant.