fillmissing: extended training, refactored, bugs fixed