clean up imports alter command registration a little
reformat code a bit
add javadoc for command usage