feat: add array helpers, minor refactors, update API docs