Added getvel functions to deal with motion detection, added sys.argv[1] feeding of measurement file name