added documentation for setBoundaryConditions