Many new features, optimizations and bugfixes