added documenting comments