updated readIDs function and documentation