created BWT with distance coding without logs
added logs
use bwt in main