Code cleanup.
Fixed minor bugs in toSentence function.
Fixed INT_MAX being undefined in some systems, wordCount now works.