tidied up sendStateSpace, some graphics work...