Updated functions fn2na and na2fn

Updated functions fn2na and na2fn as suggested by Julian Stuermer.