Refactored the message pring loop to a function, messaging
Cleaned up some includes and sytle of a for loop.
Switched the template from the iterator to the size of the input array.