code tidy up. underscore casing for class names. changed private variables names.
added ostream output to string builder.