app.c: Added a few more comments and make the control menu pretty.