added error messages when common stuff fails during unpacking
fixed some typos.
another typo fix
added a simple makefile