added debugging printf's, started encoders