Updated to Roxygen 4
Changed the initialization of parameters to using a modified version of mad that instead of returning an estimate of 0.0 returns the SD.