add root calculation
fix deinit
fix prev
add integral calculation