add docs
add getSize method and tests