Update main.cpp

added non-default constructor, overloaded << operator, and testing done in main

feel free to hit "blame" lol if problems

btw I have a copy of originals so no worries if stuff goes wrong, I'll just reupload them