Incorporated some optimizations
Changed some things according to Vadi's comments to commit
keneanung/mudlet-lua@5933961dad2a759001dadd4a388a3f674ad15a3a