Added commandline argument support to profiledata script