Added a function to remove duplicates from the task buffer.
Added and fixed documentation.