Adds #4, API endPoint can now be set

Changed function names to indicate private methods, adds configuring an
endpoint for the API.