Completed all changes, still needs some fixing

Added output functionality, but need to fix error where
'experimentFinished' is not being flagged properly.