adjusted the fact that baseUrl should not end in a / and amended the examples since these did not contain $baseUrl