Fixed bug in isDir().
Wrote the convertFile() function plus some helper functions. Working well on Windows now.