added more IO code for the server, better written function and goal data functionality added