add clock delay for mem read operation
replace address addition with array-like addressing
add debug output
cleanup