Mostly a bit of housekeeping.
Moved print and copy functions to the helper file.
Modified Makefile to create a library as well. This would help with
writing tests.