Added delete, update, and get credit methods, created tests.