created module to read and capture brain waves, and write thme to a file