Fix constructor parameters and initialization error
Merge pull request #3 from noradaiko/master

Fix constructor parameters and initialization error