Added callback function

Callback function is called okay. Dies in the electric field calculation due to lack of defined geometry and basis set.