added thanks note to e2fsprog devs
renamed function names and removed few lines of unused code