remove unused function import
keep code style consistent
rename list to map as it contains key-value pairs instead of list
add gte(greater than or equal to) assert function
refactor to fix potential problem of reading out of bounds
add empty readSamplePoint function
implement readSampleChunk