Added documentation for remove function