just some cleanup
new file- broke out some debug functions
some layout