replaced hard-coded max section length of 149 with constant
fixes #8 -- handles up to 999-section message safely
fixes issue where message length that's exact multiple of MAX_SECTION_LENGTH casues an empty section to be appended
improved logging for case when messages are split
minor refactoring