fix one zero-after bug and introduce 1-tick delay to inputs

- no more duplicate outputs
- no more extra row of 0s at beginning
- output still doesn't match after zero-after though