Added gradle wrapper and fixed build