Dmitri/convenience functions

- Adding neighbors() and expand() functions
- Formatting and whitespace