Clean up chest selection code
Add more info to invalid material error
Clean up chest ratio code