Switched from nil to -1 for minor modes such as menu-bar-mode and tool-bar-mode so that it also works in Emacs 24.
Added Emacs 24 package management initialization code,  so that packages should be loaded before they are configured.
Fixed minor typos.