add getters, fixed formatting, add test suite