Made respect baseurl and now exports windows friendly names

As discussed, here's my version. I added in basurl support as well as windows friendly names.

First pull request on github for me.