#566 - add API function that returns the size of a file, given the ID.  Also fixed the error message reporting for failed callbacks