Added clear function to set
Added keygen tool to make persistent keys.