performance improvements, halstead T function added