Upgrade packages and fix documentation