added oversampling factor as command-line argument