Finished documenting scan_directory
Removed IndexTask and changed daemon writer to BufferedWriter