add xray rails
friendly urls
clean up
refactoring