add debug feature and documentation