use constants for gpu memory addresses
remove cruft from server receive loop
Use constants to define 'magic' numbers.