update the usage() and do some documetation work.