Controller update

Changed Server.java to use JSON format expected by server application,
Added TopTen() function.
Changed function names to match java programming standard