Added batch file for windows. Fixed various bugs with util on windows.