Remove whitespace at end of fucntion definitions, and also add some demo versions of the anonymous function syntax