use endian.h consistently instead of inet.h
Add .gitignore