Added skeleton and first drafts of some functions

Need to look into putting the functions into their own files.