First fully functional version of the script. Added loadtest argument which is what actually generates the profile and runs test.