Fix help text.
Implement method to generate file name.
Write file content.
Use java 1.7.
Fix to use Java 1.7 API.