added comments; more legible code