Moved flags to config parser. Added timestamp to log output. Fixed magnitude function. Added offset and packet length to log output when samples are being dumped.