add display pointer to create call, only open new display if running from perl. Fix badwindow bug by not deleteing properties.