Added surface boundary conditions (issue #164)