Added code output

Tested code and added output message. Also renamed variable to relate
to the information it is holding.