Improved documentation in core.lua

also added some other stuff that may be removed like garbage collection and size of memory