Moved Analysis/Optimization Types to seperate files
Added Factory Pattern for analysis/optimization. Started to move some exception handling to GUI.