added sglib.h, commented out #include <assert.h>
added a hashed container to keep track of open files, updated memory allocation functions