Cmd windows are now hidden. Some minor fixes