see x ticks
Reset current working directory after walk.
Use command line parameters
Don't read() point-by-point, schlurp the whole block.