Added emit started signal and prettyfied code

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>
Started modifying func test

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>