Added license header and rewrote comment.
replaced uses of WIN32 with IS_WINDOWS.