Fixed loop during command line option parsing
Added first draft code for generating C headers for various platforms.

The --format option was added to let the user specify AVR, MIKROC or MCHIP.