Really fix function to retrieve current URL
Updated readme