Many new features and bugfixes