Added different operations, tidied up some docstrings