Added toString() methods so the debug output is easier to read.