Refactored the sampling code to use it's own data_structure, moved the sample_rate method out of the device class. Deleted the module_ruby, as this borked the rdoc a bit