Modified the comments in the header. Commented-out chmod. Added a debug variable.