Initial Set up
sets up functions and gives variables