added some more checkings
if example and syntax fixes
fixes #4, now we have if-then-elsif-else-end