Added numerical integration

Needs tuning - yields a bit random results. We'll see.