#1111 -  Refactoring
- Changes unnecessarily double-quoted strings to single-quoted
- Extracted generate_url method of the url method to reduce complexity
- Changes to the new hash definition