fixes $nax error, sample id change error, and checks if animal id is number