made some changes to the main file. to make sure that if the file is empty than no encryption or decryption is reqd. this will ensure that there is no error.