added home var
load directories in global var
added basic file/dir matching in HOME dir
functional directory matching