added initialization code interpretation, fixed block diagram editor and semantics