Since I don't see any code which is printing anything, it's hard for me to comment on what's being printed.
But anyway you just said it didn't print what you expected. So not only do I not see what it printed, I don't know what you expected either. Could you have a look at our FAQ page
TellTheDetails and post some more information?