update sql_build_q()
update comments.
update doxygen comments.
updated
updated
update comments.
updated
add flag "isIncomplete" in listWaves().
add isIncomplet flag in listWaves, insert "abort" for getSub