Sort menu items
Make output more human readable
Fix logging for init-externals
Use function for log file name