made options for remove method optional and added documentation