Updates dependencies
and fixes a few minor bugs.