Fixed type conversion errors in the analysis file. Fixed support for Windows.