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

The script should now work with R 3.0.2.