Added function body for all control functions.
Fixing compiler errors, strings char mismatch