appropriate use of logical operators
removed spaces between address-of operator and variables
saner check for current and parent directory entries in library.c