Fixed formatting and switch statement warnings

Contains several fixes for warnings related to string formatting and switch statements