Renamed functions that echoes the output to have print in their name
Removed redundant sprintf