added documentation for chain of responsibility pattern