Reorganized main.c, Turned off GCC warnings for deprecated conversion