did some clean. added software reset function.