Fixed some bugs triggered when bruteforcing. Added command line argument parsing.