Overwrite warning when creating file

Now a dialog opens to ask you of you are sure about overwriting a file.
Also, fixed a comment not using /*   */ and some coding stile small fixes.