Added functions for converting bytes to 16 bit integers.
Added Apache license notice to the source code.