add debug flag
better alloc, free, use strncpy instead of strcpy
first draft of dequeue
refactor, add tests
additional tests, refactoring