Refactored APIBuilder class to accept baseURL.
Refactored APIBuilder class to accept baseURL.