Also look at the tutorial for developing packages, on the Openacs.org website https://openacs.org/doc