added method DELETE and fixed some issues with GET