Implement expand

Implementation of expand, closes #127.
Spacing between `]` and `=>` is a little weird.