Reformat directory structure and add gradle wrapper