working on functions
worked on insert function
fixed scoping error and refactored most of the code. using the functions instead of manually settng things now
losing the header root node somehow
stuck on insert removing root node