Extended version

Thanks for adding a license, bouni. Here comes my pull request. :)

Please have a look at the rewritten version of your project. I have rewritten it as a OOP, added argparse to parse the arguments and added some other stuff. I think in this way it is more user friendly and better to use.