updated rewrite

- completed functions
- updated menu to display any menu
- correct variables to snake_case and functions to CamelCase
updated function call