Added checks to make sure directory is valid.
Implemented file reader code.
Implemented XOR encryption scheme.