Added enums for digit input and output actions, and added a to string function for both.