added support for constructor & destructor.
the "def" keyword without arguments is defined as keyword.