Further feedback from SmartViking

updated functions and variable names. added comprehension lists. added a
decode function. added repeat function. added defensive programming for
user input.