Added license header, and fixed overrun

Fixed issue where last character would read columns from beyond end of
message array.. now correctly wraps back to the beginning.