Finished lambdafunction - thanks to Paulmag!

Moved constants, added extra header.