added functionality to disregard first N samples in generating diagnostics
added system OS flag so add appropriate cflags if we are using linux
added option to set OS to add appropriate cflags for linux
added fix to deal with casting from int to double to assign to vector
cleaned up