corrected docstrings/arg names, added 'parent' foreignkey