Debugging support, + some helpful functions
Added solving via Newton-Raphson