Code cleanup and documentation. Fixed IsRunOnWindowsStartupEnabled.