Added an electric pulse to the samples project and made some slight changes