pep8 and a little extra documentation for join and aggregate functions