improved params.h, and program