add help func and running time analysis