added print

Added basic print function to main.