Solved initialization with means

Fixes #7