Implemented full IF, ELSEIF, ELSE, logic. Fixed minor bugs.