simplified init, added JavaDoc
added init tests