First I recommend you also review the Extending Applications guide which has a section on flexfields with more coverage of the UI and general implementation steps. I appreciate your customization sounds like it's on-premises, however this doc may help clarify some points. Also Chapter3 of this book has a related section too.
Can you be more specific about where you are stuck, then we can look for exact resources to help.
FA Developer Relations