Cleaned up the code and removed deprecated functions.
Updated .gitignore and added gradle wrapper