Added function type signature
Corrected typos
Changed key file name: file extension needs to be entered now (e.g. instead of pub it is now pub.key)