Add documentation

Just in case someone tries to use the function incorrectly