improve error message when template not found.
improve logging, usage text and error reporting.