updated license in README, fixed some url parsing code