Updates to codename.py

Print is now dynamically adjusted to match parameters.
Implemented custom text file option.