Substantial commenting in server and examples
Minor cleanup