Rejigged the structure of the program, separating model from controller
Load and save now implemented. Few minor bugs to be fixed