Cleaned up the built in documentation. Also added diagnostics.py to help with diagnosing anyone's problems.