(static compiler) Add method documentation

The static compiler doesn't have much documentation around the various
methods and the method signatures. This commit adds basic documentation
for method signatures and the purpose of methods.