Created/Updated documentation for changed functions. Foreign keys outputting to proper models