Fix some compiler complains about unchecked types
Minor tweaks
Add gradle wrapper scripts