added error code for AKUSetContext () and a new method to check validity of a context ID