Added automake and split into objects. Basic displaying works.