Bug fixes, performance enhancements, new functions, tests and benchmarks