add brainware src file io and tests
add brainware dam file io
refactor io tests