Added ant build file

Added ant build file with relevant targets: build, test, javadoc and
jar.
JavaDoc

Wrote JavaDoc to TextFormatter and TextFormatterImpl.