Remove unused header files and reorganize functions
Fix incorrect location being printed in test
Remove unused redpile_panic function
Add TORCH material