edits to the types graphic; simple reader and reader test code implemented