First, for a certain type of element, you have to know the theory very well.
Second, use an input file and debug into the code so that you know all the details, which can be done very easily if you have ADINA81.
There are many things and you cannot know all at one time. Just focus on the formation of element stiffness matrix first.