Fix hermes include files.
Implement Matlab binary format as suggested by Milan Hanus.