Added samplingInterval and tests to board

I also added a test for this in test/board.js though im not sure I put it in the right place