added coalescing memory access and some functions which control the right functionality of the memory read and write processes