File import almost working - End instructions must be dealt with differently