Added a timer class for performance analysis
Moved insertSentence into a transaction for performance gain