Added support for mutlibyte remaining lenght.  Moved more complex macros to functions.
Update sub.c to build with new functions.
Merge pull request #1 from rotach/master

Multibyte Remaining Length