Add more comments and logic to source files.