Fixed bugs with the dimension of parameter te and a confusion between parameters io and i0. Also fixed typo in docs