cleaned up AFTServer code and reformatted indents