Add mode, avr
Add packetsRequiredToWrite constant
Add javadoc
Remove unnecessary array copy
Add javadoc
Add CURRENT
Add MODE
Adopt chart update function