first working version
now supports directories
added global modtime, recursive directories