Tools for analysis and classification of electroencephalography