Fixing bug with get_hash_length, adding command line arg parsing