Added additional commenting, code cleanup