modified some analyses functions

Made option in max_rate to only look a positive or negative rates. Also
added documentation to these analysis functions