Initialize logging
Minor changes in top section