removed php_eol so the period falls on the same line as last item.
shifted else if statements, working thru error in brackets