document serve function (closes #13)