Added ncget and ncput functions