Removed redundant imports and made a more sensible return statement
Added empty parens call since readIndexHeader() method has the side effect of advancing the file pointer in fileInputStream
Removed redundant import
Created a Command Dispatcher and configuration and commands through that.

Modeled in a similar fashion to the Command Pattern