fixing errors. Got working functions

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>
fixed some issues. Cleaning the pipeline a bit

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>
added consistency

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>
fixed error

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>
all tests pass

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>