Refactored quite a lot of stuff. Changed the way config is passed to an
instrument. Things are basically working at full speed now.