Add option to overwrite existing files. Fix source formatting
Add javadoc comments