padded sent length by 5 to ensure no buffer issues
some additional clean up
Merge pull request #6 from ajmendez/version2

Version2