removed ref_chan, it reads the data twice, which is twice as slow
raise typeerror, not valueerror for wrong type
raise typeerror, not valueerror for wrong type
test the right type
added montage to rereference channels
small clean up