Rename myatof to myatod, fix awful bug in myatod