More work...

Created LINQ-like methods for Array.
Fixed bug in state completion transitions.
Added multiple initial state check.
Linted code.