simplified toString
updated documentation