added better inline comments