moved around a lot of code to make main shorter, no longer write line and paragraph tags since i figure their useless