Various changes

Debug, render detail, and more. Too lazy to upload a proper commit message.