Refactored/revamped the amr frequency simulation and put it through bootstrap.. optimize