added command line parsing for decimate amount