fixed possible uninitialed pointer
Added some Makefiles