Started documenting matlab code.