Optimization a Laser-Generated Proton Beam and Applications