documentation updated; added simple tests