I have followed the instruction given on page and referred the source code on git.
I successfully added the Text properties. My requirement is to attach the file to the person node, to achieve that I added the custom aspect to that node. The Aspect has an association with cm:content class. I am struggling to have an attachment on user profile field which uploads the document to the specified location on the repository and add an association with the uploaded document.