Brainware .src file

This includes the IO class for Brainware .src files.

I have also refactored the current test suite to make it easier to write new tests and to give more informative error message.  I also fixed a couple of bugs.