added key activation integration; refactored key generation integration; api testing