Added hook and test into amount of writes.

Can now optimise to be one per file.
Rewrote how changes are written. Yo dawg.

So now it will only do one write per file.
Silenced silly autocmd warning.
Merge branch 'feature/optimised-write' into develop