Added license.
Bugfixes for Windows

* Removed illegal characters from log filenames.
* List devices properly.