add docstrings to main and clean up some path hacking
add docstrings to main and clean up some path hacking


Former-commit-id: 00c77d685869c07276504e6cc60e5a4505de733b
barbagroup/pygbe,barbagroup/pygbe,barbagroup/pygbe