add useModuleName option

Adds an option to use exported function names as the result of requiring a file that exports a single class. See test additions for an example.