added a build file and replaced all the System.out|err calls with logging calls