Implemented sample rate monitor, closes #1