The Reference Manual for Vassal describes how to build modules. It is included in the application.
You get to the Reference Manual from the "Help" menu in the main Vassal application. On the "Help" menu, choose the "Help" menu item. This will bring up a general page which includes a link to the Reference Manual in the middle of the page in the section "Further Documentation".
The Reference Manual is stored locally on your machine.