Adding initial work

defined primary functions, began work on some