Refactored 2 factor auth code and added docblocks