add brainware dam file io and tests