add method to deinitialize the parameters array and set initalized to false. allows us to clear memory and reset the parameteres
add test