Fixed getArg bug
Added print instruction
Set standard to gnu11
Clarified code
Added platform-specific print macros for easier portability