Flesh out print function
Added basics of control loop