Fixed calling templated function and now headers are written for all objects
Optional first steps
Size in header increased to 4 bytes
Trying to calculate size