completed server/lib documentation