added tests
Merge branch 'fitting'
SSH-safe matplotlib import looks for DISPLAY environmental var
restored old fit_powerlaw output format to pass tests