Cleaned up lib.lua

There where lua scripts that I wrote when I thought they might be needed. To save confusion at the moment I have removed these.

New ones will be added as and when needed.
Missed removing a comment explaining the last clean up of lib.lua