fixed errors in main.c, missing semicolons and wrong type for updatePWM() arguments