added initial sphinx docs
Modified unittests to reflect new operation rules