some documentation.
make the default output fh as an attribute -- this way it is easier to change it.
When input is a hash and --fields option is given, transform the data into a sub-hash.