Debugged and running water tank c implementation. TODO sort out
component struct