Fix spelling, ResourceWarning, JSON formatting

Just some small miscellaneous changes I’ve been keeping to myself for too long