Added size parameter
fixed a few exceptions
paramatrized the search size in the query
Added authentication details to the delete method