Generalized Functions and Quantum Mechanics