adjusted accessor methods so that only parameters that need to be editable are
adding rf cavity code