comments added and two minor fixes