fixed answer grab from URL and commented code better so others can follow and not f it up in future