Upgraded package manager and fixed a bunch of bugs.