Add boolean definitions
Add os_writeFile
Merge conflicting main.c versions