init improved and doc added