Add some comments and program structure.