Updated some documentation and added a function to remove duplicates.