Fix typo, and add n2a_ namespace to all non-static functions