Add license
Move headers
Add endian macros