Accessor functions for first and last items
Syntax fixes
Tweaks and fixes
Added caching lookups and streamlined default services