MAJOR BREAKING CHANGE: singular functions for API

Began the implementation of functions that act on singular items instead of iterators. Should be more flexible.
Added extraction functions.