A Detailed Study of EEG based Brain Computer Interface