Rough function of init implemented. Added params.