Added a print feature + tests.