Added support for old style constructor
Merge pull request #152 from hason/old_constructor

Added support for old style constructor