Fixed some bugs in some plotting functions. Added a new table for storing sessions where preamplifiers were plugged in wrong