added url parsing support, partial documented comments in main.js file