Rename API_E_OK to API_E_SUCCESS
Add helper functions for object lookup
Rename function to match the common naming scheme
Improve some warning messages