flag2 update

* added initial test for flag2
* modified build.xml, simplified javadoc creation