added gem file, refactored url generation