Wrote main program
Almost have everything working