Fixed a few bugs so example server runs out of the box.