add more comments for apiunit tests and generate java doc

more comments and java doc
java doc is in PROJECT_ROOT/doc