BEM library with debugging tools