Add flatten option (fix #14), UI improvements and new release check