added toString methods on api classes where missing