update to 20140910
support hash reference to constructor (close #10)