add harp server.Code refactoring, finished diagram export.