Added Input and MainFrame classes to further abstract out GUI. Previous commands can now be recalled with the up and down arrows