Making mainKey.cpp removing the warnings.
Adding key generate