cleanup, fix doc, make stamp private, add getter for stamp
lots of documentation, code style fixes and other small stuff