Some comments added to code.