progress is shown when creating the default key based on number of keys created till then

This is with respect to the issue #210 "Progress bar on key creation" . This patch shows progress bar while creating the default key. Progress bar is based on number of keys created till then. Please verify and let me know if anything has to be changed.