added return value for Init()
added return value for Init()
fixed wrong parameter type