cosmetics: all classes derived from object
updated the way to make prints
minor bug fix
added __str__ and __repr__ methods