Commented servlets to explain logic/reasoning.