Init system functions and bug fix

* Fixes duplicate assignment to ops.State

Closes #22