renamed function and changed default named tuple

The default is not to output named tuples instead of dictionaries. Also, the main function was renamed.