Changing all printf by cout from iosteam.
Removing useless commentary about printf messages.