added a functions file

this file outlines functions to be written
cleared questionable code
Merge branch 'testing'