Add comments for command line parser related code.
Add comments for term.c.