Remove non-AMD init block and minor cleanup

- rename JSON to json
- fix coding style