API service is done, URLFactory bug is fixed and added some error checkings.