Reworked to work much better on windows.
Probably wont work on mac anymore, without further modificaitons.
Might work on linux.  Will have to test.