[feature] Initial commit of the Widget files

removing unused variables
get all params from the viewer in one call
updating references to additionalParams
other refactoring, formatting, and linting