Added the query option when releasing hosts.
Merge pull request #2 from david-caro/master

Added query to release method