Made Debug

Added debug parameter to toggle printing extra information