add tree tests, clean up old alphabet debug function, add lazy CM and docs