updated hybrid code and made new plots for examples