added path directories
revised git log function