Merging GUI

Changes in existing code have been made to enable plotting using only the out structure.