Improved dialog handling, bugfixes and more.