Minor fixes including lengths and semicolons.

Added semicolon to put statement.
Added length statements to prevent truncation problems.
Merge pull request #4 from RonReeder/master

Minor fixes including lengths and semicolons.