pushed encryption code into a new C file, crypter.c. Generalised directory checks so we can check any directory entry, not specifically an open file.