Adding 'complement' function and greatly improving readability of the docs.