Tidy up and further documentation
Updates to pim_read