add Close, Print, Dfs and fix bug in split
closer