chg: recognize url & profile handling

- fixed recognize url
- added a more convenient handling of string profile_names
- style cleanups.
Merge pull request #2 from weblyzard/feature/url-fix-and-profile-name-handling

chg: recognize url & profile handling