grid send/recieve/apply partially tested and code cleanup, see readme