Add cid to key export and remove html, close #188.