The source code for applications is in the apps/ directory. The easiest way to get started is probably to copy everything from an existing directory, then modify the files accordingly.
You should update all these files:
By convention, your program should return
successful completion. If any problems arise, the program should
return a number greater than 0.