General fixes

fixed #1, added sudo for windows script.