Adding some more friendly toStrings and preliminary unit testing.

Adding some more friendly toStrings and preliminary unit testing.