Format ADXL345.md better

All code in javascript code blocks, and general formatting improvements.