fixes for refs, arrays
fixes for refs, arrays
cleaned up printlns