Fixed Windows functions, comments