Version 1.2 more features

added some more configuration options and changed the configuration to a
dictionary, as well as commented all code
forgot to include docstring for file

added a docstring i forgot to add in version 1.2