fixed minor bug with sending variables to shaders
allow for port reuse.
added more tests to communications