Improved version code.
Updated readme.
Added extern guards to endianness.h