added an exit input function
Precisions.
Implemented back LocalSAve with lot of changes to make it a small prettier. Still ugly as heck and need to store keys more clearly. :/