Added documentation for the diffract functions