Added docs and precondition checks