[DEBUG] Add logging to textfile.
Huge bugfix

Network and Sharing Center not fixed!
Merge pull request #1 from CoenraadS/dev

Argument fix, and reference fix