Updated for better relational methods (deprecating the "r" method); moved model errors from class to instance