added spec colors and refactord url parser to use regex