Add new function to create a temporary file.
Add new function to delete a file.
Test if the parameter is valid.
Test if the parameter is valid.
Implement JSON responses.
Rename method.