A collection of various functions for EEG analysis