Minor updates

- For aw_code, passing uppercase ID fails on the API. Function now forces all input to lower case.
- aw_data returns two separate error messages for same error (bad API). Now function looks for either one and returns NULL for no data found.