corrected stdev-MAD issue, fixed license