add documentation for compute function #276

Updated doc files with minor modifications to compute function.