fixed loading of endian parm on layout.c
added a test script draft
Merge branch 'master' into linux