Fixed error in "java" task as used in "sampleTests" Ant target.
Some fixes and updates to the API documentation.