Add option to allow projects to be saved automatically
Amended apearce code and added tests.