Fixed save bug when creating new file

And updated all .cpp copyright notices