fix bug in spiketrain right_sweep
add brainware src file io and tests
add brainware dam file io