Converted the Ant project into a Gradle project.
Added a test for the overall functionality of the project.
Added an argument to optionally disable the debug UI.