Make this gem compatible with rails

- compatible with rails
- able to read sitemap