add error handling (removes compile warnings)
Merge branch 'master' of https://github.com/temporaer/cnpy into temporaer-master

Conflicts:
	cnpy.cpp