Added a few docs to operations.py

Added docs to operations.py. Review it. I don't think anything should be wrong.