initMethod added
createDevice method added