moved debugging statements from header to c file

Additionally, declaring the stacks as static.