Removed more debugging code. Created public method for handling relative path urls.