added debugprints; disable with DEBUGMODE = true/false