add debug lines, clean up code; rename debian folder