Update main.cpp

Working transaction function for the stock class.
Possibly finished the main function....maybe...