Added hdi_of_mcmc function.
Reformatted ImportErrors and ImportWarnings
Added tests.py
Merge branch 'tests' into develop