Fixes and proof reading for memory
Use chunk for read-delim.r
Fix indenting