Rewrite docstrings and use __file__ instead of sys.argv[0].