commented main EEGJ sketch