Some code improvements in ppts/PPToolsCommand.cpp