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