Correct declarations, mostly correct connections.

Have to make connections between "ready" and "valid" wires valid, have to make switch of flow on succeed code.
Temporary commit, not working.

In the process of restructuring code in more proper way.