changed int to double
added update and delete method, uncomment some stuff