Mklauser issue84 rebase2

This is an attempt to put in documentation and fix a couple of minor things with the power law and exponential functions.