added beginning docs, worked on tests