- Added default URL in case nothing passed to script
- Cleaned up script to return revision more accurately