Use smaller storage types for limited size values
More efficient code for repeat counting on send
Merge pull request #4 from ribbons/save-flash

Flash saving optimisations