Added the get function in order to have more flexibility with parameters, also the update funtion was missing the parameter declaration and was fixed. Also added debug messages.