bug fixes

added kfme_resetparam subroutine to prevent crashes, but the routine is
still under construction