Obvious error messages now, and fixed bug where the url couldn't be detected if it wasn't the very first thing (yeah...I'm bad at indexing :P )