Added skeleton of sampler.

Fixed some errors in redstone circuit classes.