Added some error checking against malloc calls
Merge branch 'master' of https://github.com/spaceconcordia/HE100-lib

Conflicts:
	C/test/he100_lib_test