case statement added (Ruby-like) :D
Some bugs fixed.