added some methods to kalman_12.py