Replace deprecated methods, clean up

`numel` -> `length`, `min` -> `minimum`, `max` -> `maximum`, pare down `root_mean`