Make files _and_ directorys selectable/browsable.

Also make long variables more readable by splitting them
up into shorter ones.