Refactored to work with Java.nio instead of java.io
Removed some unnecessary imports.
Merge branch 'RefactorFileToPath'