Tee floor integer check instead of mod(x,1).

Apparently this is computationally more efficient (slightly). It is also
a bit easier to read.

http://stackoverflow.com/questions/5396551/how-do-i-test-for-integers-in-matlab
Cosmetic changes to TeeClosure.

Edited comments, moved the export of tee to above the function.