There is a Facebook group called OpenTX .otx repository which provides model profiles. Also a programme called just fly which has a model setup contains most of the functions of the common complex functions required. So you can learn how that programme sets functions out and just follow the setup.
Search on justfly rc