adding reduce functionality and updating documentation