Modularized code

Have coded as functions and it does the necessary check.
The file is categorized based on the first character. If it is 'E',
then it is considered to be marked for encryption.