commented out I,D. averaged input. added flag for loadsense