Fixed compiler errors
Fixed (i think) bug: no redstone signal emitted