Don't hide window in debug mode.
Use correct error variable in serial devices.
Add license.