Beautify JSON config
Fix rotation generation and loading