switched to argparse
added configuration file as argument
cleanup. documentation.