optimized the better-bem generator a tad