Correcting a bunch of errors, we also add a way to determine the version of the running Windows OS.