copious comments added