Added tighter validation of URL and class name, also limited to one class name allowed.