Implemented vertical centring

- Issue #17
- Issue #5