Encapsulating printf
Fixing functions
Merge pull request #1 from wallisc/Encapsulation

Looks good