closes #10: NA treatment implemented