clean up string argument copying, make debug color and window name configurable