Fix option parsing, usage information. Add better error message if a dependency is missing.