updated bounding function docs, changed to template form