Upgraded all dependencies and fixed deprecated warnings