For cleaning up the signal, try http://leucos.lstilde.org/wp/2009/06/piezo-transducer-signal-conditioning/ and