Update store.java

added error checking of command line inputs

some style/convention demos