Split the format from the main header
Add the source file on the compilation
Fix the docs