Final revision: beautification, syntax, and written answers.