Moved main.c to an examples dir, misc tweaks