support general output function parameters and fixed README function and document