Completed the key functions, will work on key chain later on
working on yaml export and imports while rethinking memory management