minor corrections in FileHandler
merged
add parameter to run and read commands