Added comments to important methods and localized the window handle.