Update dependencies and remove unnecessaries