sample code for brainwave headset