Optimised for speed

improved file saving from 7MB/s to 18MB/s. Did this by separating file
saving logic from everything else and turning anything not necessary off
during save.