Moved print and draw functions to separate files.