Added more comments to nair.py. Fixed a minor bug when wv is not an array