Fixed EnumerateFiles

Function now runs to completion and enumerates files in the given
directory. Try/Catch blocks added