relative paths in 'example'
changing header inclusion
fixed warning about comparing signed and unsigned int