remove unused code, updated methodology for detecting beam changes, and misc cleanup