added gradle build file.
ui updates and bug fixes.