Bug fixed, parameters are now taken from command line arguments.