Added a TON of temp debugging code

Uses a temp logging program; will be replaced eventually