Included setBaseUri in Bootstrap code and provided explanation, plus minor modifications to improve quality