Added ant script to build application. Minor bug fixes.