more formatting
inputs are now sanitized before file creation