Fix segfaults
Fix repeaters and wires not checking before they propigate power
Implement printing of instructions generated