Added init and release functions. Added bulk transfer function