Add more comments for tweet length calculation

Clean up coding style