Update keyStorage.java

Updated get method and restructured constructor