updates transfer lengths
added better error handling in IPC
place small things on stack sometimes
shared memory option actually works now