add brainware src file io and tests