fix formatting, implement new list functions

- and
- or
- all
- any
- elem