Curves of maximal genus in P4