BasePath parameter, fixes #4

Guys check it out if it is you want.