Modified lib.lua and migrated entities into a folder.