Updated gradle files, also fixed a stupid bug.