Refactored both service code and gui code. Added reload button.