added __doc__ strs and some simple tests