Added if/elseif/else and fixed command history bug
New examples for V0.2