changed to bidirectional data bus
fixing bugs
many changes