Fix folder paths in the main UI and code style cleanups.