refactor to support init services in application factory; document updates