Fixed and added documentation to Analysis.py. Also fixed graph output function to match the graphsettings object.