Added underscore to id characters
Added resolution reading from XML
Removed reference to URL before setting it
Added more URL patterms