Document and format server code