Debugged & fixed average sentence length function