dereference links when opening files

this avoids lscd trying to "open" a symlink to a directory with
the file opener
Merge branch 'master' into noread
added comments throughout the file