added documentation for computeBoundaryConditions