fix code compiler to generate valid code
enable if statement
modify example
modify directory structure