changed print type on base controller node to double.
Factored out one function, fixed stuff.