Fixed bug with formatting uncertain values.

Thanks to Yuval Sanders for pointing out this bug.
Started code cleanup. WARNING: untested so far.

Comments, docstrings, rearranging imports, ensuring division
feature, etc.
Merge branch 'master' of github.com:csferrie/python-qinfer