add getters, fixed formatting, add test suite
add travis-ci build status image to readme