Added logging and some buggfixes (?) to the Function Definition Creator