Filled in pseudocode now for all functions, derived from both the slides and the manual.