Added comments, a slightly more complicated model, and the header.
-rwxr-xr-x 3124 profiler.lua
-rwxr-xr-x 2620 test-profiler.lua