Adding some much needed commenting
Adding check for shadow file as well as commenting the main() function
Fixing bug where encryption type was printing function declaration instead of value