added simple example for server
added creation of key