Saving works
Almost got command history working